/**
 * Created with IntelliJ IDEA.
 * Description :
 * User: $ {USER}
 * Date: $ {YEAR}-$ {MONTH}一$ { DAY}
 * Time: ${ TIME}
 */
public class Person {
    public String name;
    public int age;
    public Person(){
        System.out.println("不带参数的构造方法");
    }
    public Person(String name, int age){
        this.name = name;
        this.age = age;
        System.out.println("带两个参数的构造方法");
    }
    public void sleep(){
        System.out.println(name+"在睡觉");
    }
}
